<%@ page language="java" import="pandora.bo.DFAJ.*,pandora.dto.*,pandora.bo.login.*,java.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
<title> <%=session.getAttribute("session.user")%> Catalog</title>
<link rel="stylesheet" type="text/css" href="style/style.css" />
</head>
<body>
<div id="main"><jsp:include page="/head.jsp" />


<div id="wrapper">

<div id="main_body">


<ul>
 
 <%
	String sessionUser= (String)session.getAttribute("session.user");
 	
 %>
	<li> Current User: <%=sessionUser%></li>

	<li><a href="FrontController?res=menuStore.jsp">Index</a></li>
	<li><a href="FrontController?res=JSP/JSP_DFAJ/completeCatalog.jsp">Price Catalog</a></li>
	<li><a href="FrontController?res=JSP/JSP_DFAJ/catalog.jsp">My current prices</a></li>
	<li><a href="FrontController?res=JSP/JSP_DFAJ/newProduct.jsp">Add new products</a></li>
	<li><a <%	DBLogin dbl = new DBLogin();
					if(dbl.verifyCustomer((String)session.getAttribute("session.user"))){
				%>href="FrontController?res=menuCustomer.jsp"
				<%	}
					if(dbl.verifyStore((String)session.getAttribute("session.user"))){
					%>href="FrontController?res=menuStore.jsp"
				<%	}
				%>>Back</a></li>
</ul>



</div>

</div>

<jsp:include page="/foot.jsp" /></div>
</body>

</html>



